<!--Copyright (C) Kherty.  All rights reserved.-->
<UserControl
    x:Class="OpenLS.Spreadsheet.UI.DeleteRangeControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ssui="clr-namespace:OpenLS.Spreadsheet.UI"
    xmlns:Internals="clr-namespace:OpenLS.Spreadsheet.UI.Internals"
    xmlns:Internals1="clr-namespace:OpenLS.UI.Internals;assembly=OpenLS.UI"
    xmlns:Internals2="clr-namespace:OpenLS.Chart.UI.Internals;assembly=OpenLS.Chart.UI"
    xmlns:Resources="clr-namespace:OpenLS.Spreadsheet.UI.Internals.Resources"
    Height ="300" Width="300"
    >
  <StackPanel Background='{x:Static SystemColors.ControlLightBrush}'>
    <StackPanel.Resources>
      <Style TargetType="{x:Type RadioButton}">
        <Setter Property="Margin" Value="3"/>
      </Style>
      <Style TargetType="{x:Type Button}">
        <Setter Property="Margin" Value="4"/>
        <Setter Property="MinWidth" Value="70"/>
      </Style>
    </StackPanel.Resources>
    <GroupBox Margin="5" Header='{x:Static Resources:UIStringTable.Delete}'>
            <GroupBox.Resources>
                <ResourceDictionary>
                    <ResourceDictionary.MergedDictionaries>
                        <ssui:EnumResources></ssui:EnumResources>
                    </ResourceDictionary.MergedDictionaries>
                </ResourceDictionary>
            </GroupBox.Resources>
                <ListBox Name="lb" Background="Transparent" ItemsSource="{Binding Source={x:Type ssui:RangeDeletionType}, Converter={x:Static Internals2:ChartConverters.EnumEnumerator}}" >
                <ListBox.ItemContainerStyle>
                    <Style TargetType="{x:Type ListBoxItem}">
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="{x:Type ListBoxItem}">
                                    <RadioButton Content="{Binding}" IsChecked="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsSelected, Mode=TwoWay}"></RadioButton>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </ListBox.ItemContainerStyle>

            </ListBox>
                <!--
      <StackPanel>
        <RadioButton Name='shiftCellsLeft' IsChecked='True' Content="{x:Static Internals:UIStringTable.ShiftCellsLeft}"></RadioButton>
        <RadioButton Name='shiftcellsUp'  Content="{x:Static Internals:UIStringTable.ShiftCellsUp}"></RadioButton>
        <RadioButton Name='entireRow' Content="{x:Static Internals:UIStringTable.EntireRow}" ></RadioButton>
        <RadioButton Name='entireColumn' Content="{x:Static Internals:UIStringTable.EntireColumn}"></RadioButton>
      </StackPanel> -->
    </GroupBox>
    <StackPanel Orientation="Horizontal">
      <Button IsDefault="True" Name="okButton" Content="{x:Static Internals1:UIStringTable.OK}"></Button>
      <Button IsCancel="True" Content="{x:Static Internals1:UIStringTable.Cancel}"></Button>
    </StackPanel>
  </StackPanel>
</UserControl>
